package DB_Layer;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import Model_Layer.Product;

public class DBProductTest {
	private DBProduct dbProObj;

	@Before
	public void setUp() throws Exception {
		dbProObj = new DBProduct();
	}

	@Test
	public void testFindProduct() {
		
		Product proObj = dbProObj.findProduct("cowboy hat", false);
		if(proObj != null)
		{
			System.out.println("Product: "+ proObj.getName());
		}
		
		fail("Product not found");
	}
	
	public void testInsertProduct()
	{
		Product pro = new Product();
		
		pro.setName("Bukser");
		pro.setPurchasePrice(500);
		pro.setMinStock(10);
		pro.setStock(50);
		pro.setSize("32");
		pro.setSalesPrice(1000);
		pro.setRentPrice(250);
		pro.setCountryOfOrigin("US");
		pro.
	}

}
